package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 订单管理对象 order_info
 * 
 * @author 墨染
 * @date 2024-09-28
 */
public class OrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @Excel(name = "订单ID")
    private Long orderId;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String payState;

    /** 订单价格 */
    @Excel(name = "订单价格")
    private Double orderPrice;

    /** 抵扣积分 */
    @Excel(name = "抵扣积分")
    private Double orderDeductPoint;

    /** 积分抵扣金额 */
    @Excel(name = "积分抵扣金额")
    private Double orderDeductAmount;

    /** 地址ID */
    @Excel(name = "地址ID")
    private Long addressId;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payWay;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 删除表示（1删除，0不删除） */
    @Excel(name = "删除标识(0不删除，1已删除)")
    private Long isDel;

    /** 收货人姓名 **/
    @Excel(name = "收货人姓名")
    private String consigneeName;

    /** 收货人手机号 **/
    @Excel(name = "收货人手机号")
    private String consigneePhone;

    /** 省 **/
    @Excel(name = "省")
    private String province;

    /** 市 **/
    @Excel(name = "市")
    private String city;

    /** 区 **/
    @Excel(name = "区")
    private String area;

    /** 详细地址 **/
    @Excel(name = "详细地址")
    private String detailAddress;

    /** 用户昵称 **/
    @Excel(name = "用户昵称")
    private String nickName;

    /** 订单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String ext1;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String ext2;

    /** 扩展字段3 */
    @Excel(name = "扩展字段3")
    private String ext3;

    /** 扩展字段4 */
    @Excel(name = "扩展字段4")
    private String ext4;

    /** 扩展字段5 */
    @Excel(name = "扩展字段5")
    private String ext5;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setPayState(String payState)
    {
        this.payState = payState;
    }

    public String getPayState()
    {
        return payState;
    }
    public void setOrderPrice(Double orderPrice)
    {
        this.orderPrice = orderPrice;
    }

    public Double getOrderPrice()
    {
        return orderPrice;
    }
    public void setOrderDeductPoint(Double orderDeductPoint)
    {
        this.orderDeductPoint = orderDeductPoint;
    }

    public Double getOrderDeductPoint()
    {
        return orderDeductPoint;
    }
    public void setOrderDeductAmount(Double orderDeductAmount)
    {
        this.orderDeductAmount = orderDeductAmount;
    }

    public Double getOrderDeductAmount()
    {
        return orderDeductAmount;
    }
    public void setAddressId(Long addressId)
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setPayWay(String payWay) 
    {
        this.payWay = payWay;
    }

    public String getPayWay() 
    {
        return payWay;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setIsDel(Long isDel) 
    {
        this.isDel = isDel;
    }

    public Long getIsDel() 
    {
        return isDel;
    }
    public void setExt1(String ext1) 
    {
        this.ext1 = ext1;
    }

    public String getExt1() 
    {
        return ext1;
    }
    public void setExt2(String ext2) 
    {
        this.ext2 = ext2;
    }

    public String getExt2() 
    {
        return ext2;
    }
    public void setExt3(String ext3) 
    {
        this.ext3 = ext3;
    }

    public String getExt3() 
    {
        return ext3;
    }
    public void setExt4(String ext4) 
    {
        this.ext4 = ext4;
    }

    public String getExt4() 
    {
        return ext4;
    }
    public void setExt5(String ext5) 
    {
        this.ext5 = ext5;
    }

    public String getExt5() 
    {
        return ext5;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("payState", getPayState())
            .append("orderPrice", getOrderPrice())
            .append("orderDeductPoint", getOrderDeductPoint())
            .append("orderDeductAmount", getOrderDeductAmount())
            .append("addressId", getAddressId())
            .append("payWay", getPayWay())
            .append("userId", getUserId())
            .append("isDel", getIsDel())
            .append("consigneeName", getConsigneeName())
            .append("consigneePhone", getConsigneePhone())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("detailAddress", getDetailAddress())
            .append("nickName", getNickName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("ext1", getExt1())
            .append("ext2", getExt2())
            .append("ext3", getExt3())
            .append("ext4", getExt4())
            .append("ext5", getExt5())
            .toString();
    }

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public String getConsigneePhone() {
        return consigneePhone;
    }

    public void setConsigneePhone(String consigneePhone) {
        this.consigneePhone = consigneePhone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
